<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>  
	<link rel="stylesheet" type="text/css" media="screen" href="resources/style.css" />
	<title>Comprovantes Online</title>
</h:head>

<h:body>

<p:layout fullPage="true"  >  
  
	<p:layoutUnit position="north" size="70" >
		<ui:include src="cabecalho.xhtml" />
	</p:layoutUnit>  
  
    <p:layoutUnit position="center" header="&nbsp;&nbsp;Cadastro de Usuário" >
		<h:form id="form">
		   <h:panelGrid columns="2" styleClass="form" >
		    
			   <h:outputLabel value="Nome:" />
			   <p:inputText label="Nome" required="true" maxlength="70" value="#{usuarioMB.usuario.nome}" size="35" />  
		
			   <h:outputLabel value="E-mail:"/>
			   <p:inputText label="E-mail" required="true" maxlength="50" value="#{usuarioMB.usuario.email}" size="35"/>
		
			   <h:outputLabel value="Senha:"/>
			   <p:password label="Senha" value="#{usuarioMB.usuario.senha}" feedback="true" maxlength="10" required="true"
	                        promptLabel="Informe a senha." weakLabel="Senha fraca"  size="35"
	                        goodLabel="Senha média." strongLabel="Senha forte."  /> 
			   
			   <h:outputLabel value="Confirmação de Senha:"/>
			   <p:password label="Confirmação de Senha" required="true" value="#{usuarioMB.senhaConfirmacao}" size="35" maxlength="10" />
			   
			   <h:outputLabel value="Confirmação de Imagem:"/>
			   <h:outputText id="captcha" escape="false" value="#{usuarioMB.captcha}"  /> 
			   
			   <p:commandButton value="Cadastrar" actionListener="#{usuarioMB.salvar}" ajax="false" />  
		     
			</h:panelGrid>
			<p:messages id="messages" /> 
			
		</h:form>
	</p:layoutUnit>
	
    <p:layoutUnit position="south" size="43">
		<ui:include src="rodape.xhtml" />
    </p:layoutUnit>  
  
</p:layout>

</h:body>
</html>